package org.krishna.Exception;

public class CustomGenericException extends Exception{

	private static final long serialVersionUID = 1L;
	 
	private final String errCode;
	private final String[] errMsgs;
	
	private CustomGenericException(String errCode, String[] errMsgs) {
		this.errCode = errCode;
		if (errMsgs != null) {
            this.errMsgs = new String[errMsgs.length];
            System.arraycopy(errMsgs, 0, this.errMsgs, 0, errMsgs.length);
        } else
            this.errMsgs = null;
	}
	
	public String getErrCode() {
		return errCode;
	}
	
	public String[] getErrMsgs() {
		return errMsgs;
	}
	
	
	@Override
	public String getMessage() {
		System.out.println("hello");
	        return null;
	  }
}
